import { createI18n } from 'vue-i18n'

import zh from './zh'
import hk from './hk'
import en from './en'
import jp from './jp'
import kr from './kr'
import vn from './vn'
import th from './th'

const i18n = createI18n({
  locale: localStorage.getItem('lang') || 'zh',
  messages: {
    zh,
    hk,
    en,
    jp,
    kr,
    vn,
    th,
  },
})

export default i18n
